cmake_minimum_required(VERSION 3.20)

project(testCMake VERSION 1.2)

# 文件拷贝替换变量
# 将configue.h.in 复制到 configue.h中并做变量替换
configure_file(./configue.h.in configue.h)

message("CMAKE_VERSION = ${CMAKE_VERSION}")
message("PROJECT_VERSION_MAJOR =  ${PROJECT_VERSION_MAJOR}")
message("PROJECT_VERSION_MINOR =  ${PROJECT_VERSION_MINOR}")
message(------${CMAKE_CXX_COMPILER})
set(CMAKE_CXX_STANDARD 17)

add_executable(test main.cpp)
target_include_directories(test PRIVATE ./build)